package main

import (
	_ "focus-single/internal/boot"
	"focus-single/internal/cmd"
	_ "focus-single/internal/logic"
	_ "focus-single/internal/packed"
	_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
	_ "github.com/gogf/gf/contrib/drivers/sqlite/v2"
	"github.com/gogf/gf/v2/frame/g"
	"github.com/gogf/gf/v2/os/gctx"
	"github.com/gogf/gf/v2/os/glog"
)

func main() {
	var ctx = gctx.GetInitCtx()
	// 可用性检查.
	//g.Dump("可用性检查:", g.Cfg().Available(ctx))
	glog.Debug(ctx, "配置可用:", g.Cfg().Available(ctx))
	// 所有键值配置.
	g.Dump(g.Cfg().Data(ctx))
	//glog.Debug(ctx, "gogf框架启动", g.Cfg().Data(ctx))
	// 按键检索特定值.
	//g.Dump(g.Cfg().MustGet(ctx, "server.address"))
	//boot.NacosRegistry(ctx)
	cmd.Main.Run(gctx.New())

}
